//
//  BHSelectMediaView.h
//  Behing
//
//  Created by Lj on 2017/10/20.
//  Copyright © 2017年 lj. All rights reserved.
//

#import <UIKit/UIKit.h>
@class BHSelectMediaView;

@protocol PublicWelfareImageViewDataSource <NSObject>

- (NSArray *)dataArraynumberOfItems:(BHSelectMediaView *)mediaView;

@optional
- (CGSize)collectionView:(UICollectionView *)collectionView sizeForItemAtIndexPath:(NSIndexPath *)indexPath;

- (void)deleteSelectMediaView:(BHSelectMediaView *)mediaView deleteItem:(NSInteger)item;

- (void)deleteAddImage:(BHSelectMediaView *)mediaView;

@end

@interface BHSelectMediaView : UIView

/** Whether to display delete default 'NO'*/
@property (nonatomic, assign) BOOL isDisplayDelete;
/** Does it display the prompt text default 'NO' */
@property (nonatomic, assign) BOOL isDisplayPrompt;
/** Whether to implement add image default 'NO' */
@property (nonatomic, assign) BOOL isImplement;
/** Maximum number of images */
@property (nonatomic, assign) NSInteger maxImageCount;

//自己写加的,yes需要手动显示删除按钮，no默认显示删除按钮
@property (nonatomic, assign) BOOL isNormal;

/** reloadData View */
- (void)reloadDataSelectMediaView;

@property (nonatomic, strong) UIImageView *image;

@property (nonatomic, assign) id <PublicWelfareImageViewDataSource> dataSource;

@end
